package com.example.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishOrderMapper {

    /**
     * 添加订单与该订单包含菜品的记录
     *
     * @param orderId       订单ID
     * @param dishIdList    菜品ID集合
     * @return              受影响的行数
     */
    int add(@Param("orderId") Integer orderId, List<Integer> dishIdList);
}
